//
//  Task.swift
//  ToDoList
//
//  Created by Qingke on 16/4/12.
//  Copyright © 2016年 Qingke. All rights reserved.
//

import UIKit
class Task: NSObject , NSCoding{
    var name:String = ""
    var isChecked : Bool = true
    
    init(name:String ,isChecked: Bool = false) {
        
        self.name = name
        self.isChecked = isChecked
    }
    
    func encodeWithCoder(aCoder: NSCoder) {
        aCoder.encodeObject(name, forKey: "name")
        aCoder.encodeObject(isChecked, forKey: "isChecked")
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init()
    }
  
}
